package com.taoyibao.hongcanting.ui.mine.activity;

import android.os.Bundle;

import com.taoyibao.hongcanting.R;
import com.taoyibao.hongcanting.base.activity.BaseActivityPresenter;
import com.taoyibao.hongcanting.base.delegate.BackViewPageDelegate;
import com.taoyibao.hongcanting.constant.CodeConstant;
import com.taoyibao.hongcanting.ui.mine.fragment.WalletDetailsFragment;
import com.taoyibao.hongcanting.utils.CodeUtils;

/**
 * @author TangAnna
 * @description: 钱包明细
 * @date :${DATA} 16:17
 */
public class WalletDetailsActivity extends BaseActivityPresenter<BackViewPageDelegate> {
    @Override
    protected Class<BackViewPageDelegate> getDelegateClass() {
        return BackViewPageDelegate.class;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        viewDelegate.setFragmentManager(getSupportFragmentManager());
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void bindEvenListener() {
        super.bindEvenListener();
        viewDelegate.setTitle("钱包明细");
        viewDelegate.setTabLayoutBackgroundColor(CodeUtils.getIdColor(R.color.colorBg));
        viewDelegate.setRootViewColor(CodeUtils.getIdColor(R.color.colorBg));
        viewDelegate.setTabScrollModel();
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_all), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_ALL));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_eat), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_EAT));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_helpPayType), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_HELP_PAY));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_daShang), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_DASHANG));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_recharge), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_RECHARGE));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_withdraw), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_WITHDRAW));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_fanLi), WalletDetailsFragment.getInstance(CodeConstant.STATUS_WALLET_FANLI));
    }
}
